<#if htmlAllowed>
    <div class="genmed">
        <input type="checkbox" id="disable_html" name="disable_html" ${htmlChecked} onclick="swEditor(!this.checked);"
        />
        <script type="text/javascript">
            //FIX:IE
            var oldOnloads = window.onload;
            var readySWEditor = function() {
                if (oldOnloads)oldOnloads();
                swEditor(!document.getElementById('disable_html').checked);
            };
            window.onload = readySWEditor;
        </script>
        <label for="disable_html">${I18n.getMessage("PostForm.disableHtml")}</label>
    </div>
    <#else>
        <input type="hidden" name="disable_html" value="1"/>
</#if>

<div class="genmed"><input type="checkbox" id="disable_bbcode" name="disable_bbcode" ${bbChecked} />
    <label for="disable_bbcode">${I18n.getMessage("PostForm.disableBbCode")}</label>

</div>
<div class="genmed"><input type="checkbox" id="disable_smilies" name="disable_smilies" ${smiliesChecked} />
    <label for="disable_smilies">${I18n.getMessage("PostForm.disableSmilies")}</label>
</div>

<#if user.id != 1>
    <div class="genmed">
        <input type="checkbox" id="attach_sig" name="attach_sig" ${signatureChecked} />
        <label for="attach_sig">${I18n.getMessage("PostForm.appendSignature")}</label>

    </div>
    <#if forum?exists>
        <div class="genmed">
            <input type="checkbox" id="notify" name="notify" ${repliesChecked} />
            <label for="notify">${I18n.getMessage("PostForm.notifyReplies")}</label>
        </div>
    </#if>
</#if>

<#if setType?default(true) && forum?exists && canCreateStickyOrAnnouncementTopics?default(false)>
    <div class="genmed">${I18n.getMessage("PostForm.setTopicAs")}:
        <input type="radio" checked="checked" value="0" id="topic_type0" name="topic_type"
        <#if topic?exists && topic.type == 0>checked="checked"</#if>
        /><label for="topic_type0">${I18n.getMessage("PostForm.setTopicAsNormal")}</label>&nbsp;&nbsp;
        <input type="radio" value="1" id="topic_type1" name="topic_type"
        <#if topic?exists && topic.type == 1>checked="checked"</#if>
        /><label for="topic_type1">${I18n.getMessage("PostForm.setTopicAsSticky")}</label>&nbsp;&nbsp;
        <input type="radio" value="2" id="topic_type2" name="topic_type"
        <#if topic?exists && topic.type == 2>checked="checked"</#if>
        /><label for="topic_type2">${I18n.getMessage("PostForm.setTopicAsAnnounce")}</label>&nbsp;&nbsp;
    </div>
    <#elseif topic?exists>
        <input type="hidden" name="topic_type" value="${topic.type}"/>
</#if>